import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import piniaPluginPersitedState from 'pinia-plugin-persistedstate'
import 'element-plus/dist/index.css'
// 引入样式重置和公共样式
import '@/assets/style/index.scss'
// 导入scss变量
import '@/assets/style/variables.module.scss'

// 导入i18n 对象
import i18n from '@/locales/index'
let pinia = createPinia();
pinia.use(piniaPluginPersitedState) //pinia持久化插件
let app = createApp(App)
app.use(i18n) //使用i18n
app.use(router)
app.use(pinia)
app.use(ElementPlus)
app.mount('#app')
